package com.sinodata.bsm.common.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TreeNodeSequence entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TREE_NODE_SEQUENCE")
public class TreeNodeSequence implements java.io.Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -5922360015035625474L;

    // Fields    
    private String parentNodeId;
    private String childNodeIds;

    // Constructors

    /** default constructor */
    public TreeNodeSequence() {
    }

    /** minimal constructor */
    public TreeNodeSequence(String parentNodeId) {
        this.parentNodeId = parentNodeId;
    }

    /** full constructor */
    public TreeNodeSequence(String parentNodeId, String childNodeIds) {
        this.parentNodeId = parentNodeId;
        this.childNodeIds = childNodeIds;
    }

    // Property accessors
    @Id
    @Column(name = "PARENT_NODE_ID", unique = true, nullable = false, length = 32)
    public String getParentNodeId() {
        return this.parentNodeId;
    }

    public void setParentNodeId(String parentNodeId) {
        this.parentNodeId = parentNodeId;
    }

    @Column(name = "CHILD_NODE_IDS", length = 4000)
    public String getChildNodeIds() {
        return this.childNodeIds;
    }

    public void setChildNodeIds(String childNodeIds) {
        this.childNodeIds = childNodeIds;
    }

    @Override
    public String toString() {
        return "TreeNodeSequence [parentNodeId=" + parentNodeId + ", childNodeIds=" + childNodeIds + "]";
    }

}